/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.jsc.app.controller;

import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author Jeff
 */
@Controller
public class InicioController {
    
    @RequestMapping(value="/mostrar_inicio", method=RequestMethod.GET)
    public ModelAndView mostrar_inicio_GET(ModelMap modelo){
        return mostrar_inicio(modelo);
    }

    @RequestMapping(value="/mostrar_inicio", method=RequestMethod.POST)
    public ModelAndView mostrar_inicio_POST(ModelMap modelo){
        return mostrar_inicio(modelo);
    }
    
    private ModelAndView mostrar_inicio(ModelMap modelo){
        System.out.println("hola....");
        Map<String, Object> datos = new HashMap<String, Object>();
        try {
            
        } catch (Exception e) {
            e.printStackTrace();
        }

        return new ModelAndView("mostrar_inicio", datos);
    }
    
}
